.big-content
	- if current_user.admin? || current_user.librarian?
		.header-link.left.inactive= link_to "#{t 'welcome.user.header_link.books'}", "/books/index/1"
		.divider.left= "|"
		.header-link.left.active= link_to "#{t 'welcome.user.header_link.photo_regis'}", "/photo_registrations/index/1?book_id=#{@photo_registrations.first.book.id}"
	- else
		.header-link.left.inactive= link_to "#{t 'welcome.user.header_link.books'}", "/photo_registrations/home/1"
		.divider.left= "|"
		.header-link.left.active= link_to "#{t 'welcome.user.header_link.photo_regis'}", "/photo_registrations/index/1"
	.clearboth
	- i = 0
	- @photo_registrations.each do |photo_registration|
		- i = i + 1
		- book = photo_registration.book
		.small-content.left
			.img.left= image_tag book.image_url, :size => "60x60"
			.text-content.left
				.h1.title-link= link_to "#{book.title.truncate(15).upcase}", "/photo_registrations/show/#{photo_registration.id}"
				.h3= book.author.truncate(25) unless book.author.nil?
				.h2 
					%b= t 'welcome.user.photo_registration.owner'
					= photo_registration.user.username.to_s
				.h2 
					%b= t 'welcome.user.photo_registration.finish'
					= photo_registration.finish_date.to_s   
				.h2.link= link_to "#{t 'welcome.user.link.delete_photo'}", "/photo_registrations/delete/#{photo_registration.id}", :method => "post", :data => {:confirm => "Are you sure?"}
		- if(i % 3 == 0)
			.clearboth
	.paginate.right= will_paginate @photo_registrations